/****************************************
 * Copyright (c) 2015 NiuWa.
 * All rights reserved.
 * Created on 2015年4月20日
 * 
 * Contributors:
 * 	   Percy.Lo - initial implementation
 ****************************************/
package com.niuwa.p2p.server.manggoDB.exchange;

import com.mongodb.DBObject;
import com.niuwa.p2p.core.enums.MongoQueueEnum;


/**
 * @title 借款队列查找结果
 *
 * @author Percy.Lo
 * @version 1.0
 * @created 2015年4月20日
 */
public class LoanResult {
	private MongoQueueEnum queue;
	private DBObject loan;

	public LoanResult(MongoQueueEnum queue, DBObject loan) {
		this.queue = queue;
		this.loan = loan;
	}

	public MongoQueueEnum getQueue() {
		return queue;
	}

	public DBObject getLoan() {
		return loan;
	}
	
	@Override
	public String toString() {
		return "[queue:"+queue+", loan:"+loan+"]";
	}
}
